body {
	color: white;
	background-color: black;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-khtml-user-select: none;
	-moz-user-select: -moz-none;
	-ms-user-select: none;
	user-select: none;
	cursor: default;
	margin: 0px;
	font-family: Helvetica, Arial, sans-serif /*{global-font-family}*/;
}

.game-button {
	position: fixed;
	background-color: #606060;
	back ground-color: #FF0000;
	back ground-color: #FFFF00;
	back ground-color: #00FF00;
	back ground-color: #00FFFF;
	back ground-color: #0000FF;
	back ground-color: #FF00FF;
	text-align: center;
	opacity: 0.75;
	z-index: 200;
}

@media screen and (orientation: portrait) {
.game-button {
	width:       80px;
	height:      70px;
	line-height: 70px;
	bor der: 10px solid #404040;
}

#game-menu {
	left: 0px;
	top:  0px;
}
#game-messages {
	right: 0px;
	top:   0px;
}
#game-action {
	left:   0px;
	bottom: 0px;
}
#game-zoomin {
	height:      35px;
	line-height: 35px;
	left:        80px;
	bottom:       0px;
}
#game-zoomout {
	height:      35px;
	line-height: 35px;
	right:       80px;
	bottom:       0px;
}
#game-end {
	right:  0px;
	bottom: 0px;
}
}

@media screen and (orientation: landscape) {
.game-button {
	width:       80px;
	height:      75px;
	line-height: 75px;
}

#game-menu {
	left:   0px;
	bottom: 0px;
}
#game-messages {
	left: 0px;
	top:  0px;
}
#game-action {
	right:  0px;
	bottom: 0px;
}
#game-zoomin {
	width:  40px;
	right:   0px;
	bottom: 75px;
}
#game-zoomout {
	width: 40px;
	right:  0px;
	top:   75px;
}
#game-end {
	right: 0px;
	top:   0px;
}
}

.game-menus {
	pointer-events: none;
	position: fixed;
	dis play: table;
	width: 100%;
	height: 100%;
}
.game-menu {
	pointer-events: auto;
	dis play: table-cell;
	ver tical-align: middle;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 240px;
	height: 220px;
	margin: -110px -120px;
	background-color: #404040;
	text-align: center;
	opacity: 0.75;
	display: none;
}
.game-menu h1 {
	margin: 0px;
	line-height: 60px;
}
.menu-button {
	height: 40px;
	line-height: 40px;
	background-color: #606060;
	margin: 10px;
}

#game-board {
	position: absolute;
	width: 100%;
	height: 100%;
}

#viewport {
	position: absolute;
	overflow: hidden;
}

#foreground {
	wid th: 320px;
	hei ght: 320px;
	mar gin: -160px;
}

#message {
	position: absolute;
	width: 100%;
	text-align: center;
	line-height: 40px;
}

#foreground, #background1, #background2, #background3 {
	position: absolute;
}
#background1 div, #background2 div, #background3 div {
	position: absolute;
	background-image: url(gfx/star/a.png);
	background-repeat: no-repeat;
}
#background1 div {
	width:  28px;
	height: 28px;
	background-position-y: 0px;
}
#background2 div {
	width:  14px;
	height: 14px;
	background-position-y: -28px;
}
#background3 div {
	width:  7px;
	height: 7px;
	background-position-y: -42px;
}

.star-0 { background-position-x: -0px; }
.star-1 { background-position-x: -28px; }
.star-2 { background-position-x: -56px; }
.star-3 { background-position-x: -84px; }
.star-4 { background-position-x: -112px; }
.star-5 { background-position-x: -140px; }

.space-system {
	position: absolute;
	width: 32px;
	height: 32px;
	margin: -16px;
	bor der-radius: 16px;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.space-system.player-p0 { background-image: url('gfx/p0/system-control.png'); }
.space-system.player-p1 { background-image: url('gfx/p1/system-control.png'); }
.space-system.player-p2 { background-image: url('gfx/p2/system-control.png'); }
.space-system.player-p3 { background-image: url('gfx/p3/system-control.png'); }
.space-system.player-p4 { background-image: url('gfx/p4/system-control.png'); }
.space-system.player-p5 { background-image: url('gfx/p5/system-control.png'); }
.space-system.player-p6 { background-image: url('gfx/p6/system-control.png'); }

.drop-target {
	width: 48px;
	height: 48px;
	margin: -24px;
	bor der-radius: 24px;
}

.drop-target .factories {
	left: 24px;
	top: 24px;
}
.factories {
	pointer-events: none;
	position: absolute;
	left: 16px;
	top:  16px;
	margin-top: 12px;
	width: 0px;
	height: 8px;
	background-image: url('gfx/factory8.png');
	opa city: 0.5;
}
.factories img {
	width: 8px;
	height: 8px;
}

.system-target, .system-star, .system-force {
	pointer-events: none;
	position: absolute;
	top: 50%;
	left: 50%;
}

.system-target {
	display: none;
	width: 64px;
	height: 64px;
	margin: -32px;
}
.space-system.player-p0 .system-target { background-image: url('gfx/p0/system-target.png'); }
.space-system.player-p1 .system-target { background-image: url('gfx/p1/system-target.png'); }
.space-system.player-p2 .system-target { background-image: url('gfx/p2/system-target.png'); }
.space-system.player-p3 .system-target { background-image: url('gfx/p3/system-target.png'); }
.space-system.player-p4 .system-target { background-image: url('gfx/p4/system-target.png'); }
.space-system.player-p5 .system-target { background-image: url('gfx/p5/system-target.png'); }
.space-system.player-p6 .system-target { background-image: url('gfx/p6/system-target.png'); }

.system-star {
	width: 32px;
	height: 32px;
	margin: -16px;
	background-image: url('gfx/system24.png');
	background-position: center;
	background-repeat: no-repeat;
}

.system-force {
	width: 32px;
	height: 32px;
	margin: -16px;
	line-height: 32px;
	font-size: 12px;
	text-align: center;
	color: black;
}

.system-build {
	pointer-events: none;
	position: absolute;
	width: 32px;
	height: 32px;
	margin: -16px;
	background-image: url(gfx/factory16.png);
	background-position: center;
	background-repeat: no-repeat;
	z-index: 100;
}
.system-boom {
	pointer-events: none;
	position: absolute;
	width: 0px;
	height: 0px;
	background-image: url(gfx/boom.png);
	background-size: cover;
	z-index: 100;
}
.system-fleet {
	pointer-events: none;
	display: none;
	position: absolute;
	top: 16px;
	left: 16px;
	width: 32px;
	height: 32px;
	margin: -16px;
	background-image: url(gfx/ship16.png);
	background-position: center;
	background-repeat: no-repeat;
	z-index: 100;
}
.system-icon {
	pointer-events: none;
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	margin: -16px;
	background-color: red;	
	z-index: 100;
	opacity: 0.5;
}
